<template>
  <el-button type="text" @click="clickHandler" size="small" >
    <slot>编辑</slot> 
  </el-button>
</template>
<script setup>
import { inject } from 'vue'

const columnStatusArray = inject('columnStatusArray')

const { row, index, column } = defineProps(['row', 'index', 'column'])

const clickHandler = () => {
  columnStatusArray.value[index] = !columnStatusArray.value[index]
}
</script>